package com.github.catvod.spider;

import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.Dv;
import com.github.catvod.spider.merge.HZ;
import com.github.catvod.spider.merge.Lm;
import com.github.catvod.spider.merge.fP;
import com.github.catvod.spider.merge.lk;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.json.JSONArray;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class Slys extends Spider {
    private static String h = "";

    /* renamed from: short, reason: not valid java name */
    private static final short[] f52short = {1487, 1482, 1488, 1495, 1421, 1474, 1488, 1491, 1535, 1436, 1504, 1487, 1474, 1488, 1488, 1482, 1479, 1438, 1419, 1535, 1479, 1416, 1418, 2838, 2836, 2829, 2834, 2846, 2901, 2842, 2824, 2827, 2855, 2884, 2872, 2839, 2842, 2824, 2824, 2834, 2847, 2886, 2899, 2855, 2847, 2896, 2898, 1924, 2013, 1988, 1999, 1926, 2011, 1991, 1994, 2002, 1926, 1986, 1999, 1926, 1923, 2039, 2040, 1920, 1922, 1925, 1987, 2015, 1990, 1991, 814, 779, 785, 790, 844, 771, 785, 786, 830, 861, 769, 782, 771, 785, 785, 779, 774, 863, 851, 850, 836, 785, 775, 771, 784, 769, 778, 789, 781, 784, 774, 863, 836, 786, 771, 773, 775, 863, 842, 830, 774, 841, 843, 1744, 1751, 1700, 1742, 1746, 1734, 1698, 1748, 1750, -24950, 593, 637, 639, 588, 624, 637, 613, 633, 622, 607, 627, 626, 634, 629, 635, 562, 620, 624, 637, 613, 633, 622, 579, 624, 629, 623, 616, 545, 564, 576, 615, 562, 566, 576, 609, 565, 576, 560, 593, 637, 639, 588, 624, 637, 613, 633, 622, 607, 627, 626, 634, 629, 635, 562, 632, 627, 619, 626, 633, 622, 579, 624, 629, 623, 616, 545, 2328, 2368, 2368, 2368, 2328, 2427, 2398, 2372, 2371, 2329, 2390, 2372, 2375, 2312, 2388, 2395, 2390, 2372, 2372, 2398, 2387, 2314, 2518, 2435, 2453, 2449, 2434, 2451, 2456, 2439, 2463, 2434, 2452, 2509, 2518, 2432, 2449, 2455, 2453, 2509, 3278, 3267, 3292, 3210, 3220, 3210, 3275, 3313, 3266, 3288, 3279, 3276, 3200, 3223, 3213, 3290, 3275, 3277, 3279, 3223, 3213, 3319, 3066, 3040, 3063, 3060, 18872, 18867, -24634, 28363, 25955, 24596, 20570, 25282, 25241, -29717, 29934, 31929, 26102, 22156, 661, 664, 647, 721, 719, 721, 644, 669, 721, 719, 721, 669, 664, 721, 719, 721, 642, 645, 643, 670, 671, 662, 721, 719, 721, 656, 533, 520, 533, 525, 516, 2182, 2178, 2184, 743, 742, 759, 2398, 2397, 2380, 2371, 2327, 2369, 2380, 2398, 2393, 2304, 2382, 2373, 2372, 2369, 2377, 3295, 3270, 3277, 3318, 3264, 3277, 1309, 1284, 1295, 1332, 1285, 1290, 1286, 1294, 2729, 2736, 2747, 2688, 2735, 2742, 2748, 2856, 2856, 2223, 2230, 2237, 2182, 2219, 2236, 2228, 2232, 2219, 2226, 2218, 2777, 2760, 2766, 2764, 2722, 2739, 2741, 2743, 2737, 2749, 2727, 2748, 2726, 3032, 3037, 3033, 3037, 3008, 2578, 2569, 2578, 2567, 2570, 1565, 1560, 1538, 1541, 16916, 25403, 3138, 3098, 3098, 3098, 3138, 3072, 3074, 3099, 3076, 3080, 3139, 3084, 3102, 3101, 3154, 3118, 3073, 3084, 3102, 3102, 3076, 3081, 3152, 3062, 2953, 2997, 3000, 2976, 2964, 2998, 2991, 3063, 3000, 2986, 2985, 3046, 2970, 2997, 3000, 2986, 2986, 2960, 3005, 3044, 445, 493, 498, 511, 510, 500, 422, 425, 445, 510, 483, 510, 422, 427, 445, 511, 500, 492, 501, 422, 427, 445, 502, 500, 493, 469, 500, 422, 426, 445, 493, 508, 493, 510, 489, 422, 494, 501, 511, 510, 509, 498, 501, 510, 511, 445, 472, 503, 498, 510, 501, 495, 466, 459, 422, 3265, 3293, 3293, 3289, 3219, 3206, 3206, 588, 592, 592, 596, 599, 542, 523, 523, 3097, 815, 811, 801, 2192, 2193, 2176, 2352, 933, 956, 2550, 2547, 764, 741, 750, 725, 750, 739, 760, 751, 745, 766, 741, 760, 2897, 2888, 2883, 2936, 2886, 2884, 2899, 2888, 2901, 29535, 25064, 2286, 2295, 2300, 2247, 2282, 2301, 2293, 2297, 2282, 2291, 307, 314, 315, 289, 23838, 19849, 2866, 2859, 2848, 2843, 2877, 2849, 2853, 2870, 813, 800, 831, 1830, 1855, 1844, 1807, 1849, 1844, 2219, 2226, 2233, 2178, 2227, 2236, 2224, 2232, 1000, 1009, 1018, 961, 1006, 1015, 1021, 1847, 1847, 1927, 1950, 1941, 1966, 1938, 1950, 1951, 1925, 1940, 1951, 1925, 2530, 2557, 2544, 2545, 2555, 2549, 2534, 2534, 2504, 2490, 2532, 2529, 2535, 2556, 2504, 2492, 2483, 2492, 2511, 2506, 2483, 2505, 2494, 2493, 2483, 2504, 2493, 2281, 2566, 2730, 2739, 2744, 2691, 2732, 2736, 2749, 2725, 2691, 2746, 2734, 2739, 2737, -32114, 22298, 3275, 3282, 3289, 3298, 3277, 3281, 3292, 3268, 3298, 3272, 3279, 3281, 2330, 2335, 2309, 2306, 481, 455, 465, 454, 409, 501, 467, 465, 474, 448, 1950, 1980, 1961, 1978, 1983, 1983, 1970, 2044, 2022, 2045, 2019, 2035, 2043, 1924, 1978, 1981, 1975, 1980, 1956, 1952, 2035, 1949, 1927, 2035, 2018, 2019, 2045, 2019, 2024, 2035, 1924, 1978, 1981, 2021, 2023, 2024, 2035, 1963, 2021, 2023, 2042, 2035, 1938, 1955, 1955, 1983, 1974, 1924, 1974, 1969, 1944, 1978, 1959, 2044, 2022, 2016, 2020, 2045, 2016, 2021, 2035, 2043, 1944, 1947, 1927, 1950, 1951, 2047, 2035, 1983, 1978, 1976, 1974, 2035, 1940, 1974, 1968, 1976, 1980, 2042, 2035, 1936, 1979, 1953, 1980, 1982, 1974, 2044, 2018, 2018, 2027, 2045, 2019, 2045, 2019, 2045, 2019, 2035, 1920, 1970, 1973, 1970, 1953, 1978, 2044, 2022, 2016, 2020, 2045, 2016, 2021, 577, 537, 537, 537, 577, 519, 512, 522, 523, 534, 576, 527, 541, 542, 2279, 2302, 2225, 2300, 2291, 2276, 2211, 2211, 2211, 2226, 2302, 2299, 2226, 2291, 1831, 1853, 1834, 1833, 2121, 2126, 2120, 2133, 2132, 2141, 31873, 22213, 30484, -29721, 20550, 31552, -30778, 23172, 26375, 2768, 2781, 2772, 2753, 2811, 2765, 2752, 973, 960, 969, 988, 998, 983, 984, 980, 988, 2542, 2529, 2532, 2556, 2541, 2554, 2555, 2105, 2102, 2107, 2089, 2089, 3273, 3280, 3231, 3294, 3285, 3291, 3311, 3280, 3285, 3288, 3289, 3305, 3280, 3228, 3280, 3285, 1494, 1431, 1476, 1479, 1494, 1497, 3326, 3263, 3318, 3314, 3320, 264, 265, 280, 30046, -28581, 26139, -31005, 1930, 1038, 1047, 1052, 1063, 1041, 1052, 2144, 2169, 2162, 2121, 2168, 2167, 2171, 2163, 1429, 1420, 1415, 1468, 1427, 1418, 1408, 2159, 2159, 3077, 3100, 3095, 3116, 3073, 3094, 3102, 3090, 3073, 3096, 3072, 2670, 2667, 2673, 2678, 1195, 1210, 1193, 1192, 1214, 995, 996, 1018, 2796, 2740, 2740, 2740, 2796, 2703, 2730, 2736, 2743, 2797, 2722, 2736, 2739, 2812, 2736, 2726, 2722, 2737, 2720, 2731, 2740, 2732, 2737, 2727, 2814, 616, 621, 541, 540, 542, 541, 2919, 2818, 2861, 2848, 2866, 2866, 2824, 2853, 2940, 2930, 2929, 2784, 2809, 3195, 3198, 3127, 3190, 3278, 3283, 3278, 3286, 3295, 1841, 1845, 1855, 1308, 1309, 1292, 2081, 2082, 2099, 2108, 2152, 2110, 2099, 2081, 2086, 2175, 
    2097, 2106, 2107, 2110, 2102, 1743, 1749, 1730, 1729, 543, 518, 525, 566, 512, 525, 963, 986, 977, 1002, 987, 980, 984, 976, 1007, 1014, 1021, 966, 1001, 1008, 1018, 462, 462, 3187, 3178, 3169, 3162, 3191, 3168, 3176, 3172, 3191, 3182, 3190, 1342, 1339, 1313, 1318};
    private JSONObject V0;
    private Pattern j = Pattern.compile(C0006.m18(f52short, 0, 23, 1443));
    private Pattern q = Pattern.compile(C0004.m12(f52short, 23, 24, 2939));
    private Pattern I = Pattern.compile(C0000.m1(f52short, 47, 23, 1963));
    private Pattern oC = Pattern.compile(C0004.m12(f52short, 70, 43, 866));
    private Pattern BQ = Pattern.compile(C0018.m56(f52short, 113, 10, 1791));
    private Pattern W = Pattern.compile(C0012.m37(f52short, 123, 66, 540));

    public Slys() {
        int m19 = C0006.m19();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m19 <= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Double.parseDouble(C0015.m46("YS35XMtz")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:25:0x008a, code lost:
    
        r4 = r1;
        r5 = r1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:264:0x01bd, code lost:
    
        r4 = r2;
        r5 = r1;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:107:0x026e. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:178:0x00ed. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:232:0x0157. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:43:0x01ed. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String categoryContent(java.lang.String r18, java.lang.String r19, boolean r20, java.util.HashMap<java.lang.String, java.lang.String> r21) {
        /*
            Method dump skipped, instructions count: 1166
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Slys.categoryContent(java.lang.String, java.lang.String, boolean, java.util.HashMap):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:153:0x0194. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:217:0x0239. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:29:0x035a. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:34:0x038f. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x013e. Please report as an issue. */
    public String detailContent(List<String> list) {
        String m47 = C0015.m47(f52short, 382, 2, 3119);
        try {
            Init.getPackage();
            StringBuilder sb = new StringBuilder();
            sb.append(h);
            sb.append(C0012.m37(f52short, 384, 23, 3181));
            int i = 0;
            sb.append(list.get(0));
            HZ h2 = lk.h(fP.n(sb.toString(), h("")));
            String n = fP.n(h + C0004.m12(f52short, 407, 21, 3033) + list.get(0) + C0006.m18(f52short, 428, 55, 411) + h.replace(C0004.m12(f52short, 483, 7, 3241), "").replace(C0018.m56(f52short, 490, 8, 548), "").split(C0011.m35(f52short, 498, 1, 3107))[0], h(""));
            JSONObject jSONObject = new JSONObject();
            JSONObject jSONObject2 = new JSONObject();
            String j = h2.Pi(C0013.m41(f52short, 499, 3, 838)).get(1).j(C0008.m27(f52short, 502, 3, 2275));
            String e = h2.Pi(C0007.m26(f52short, 505, 1, 2386)).get(1).e();
            Dv Pi = h2.Pi(C0002.m6(f52short, 506, 2, 976)).get(1).Pi(C0015.m47(f52short, 508, 2, 2458));
            int i2 = 0;
            while (true) {
                int size = Pi.size();
                int i3 = 1616;
                while (true) {
                    i3 ^= 1633;
                    switch (i3) {
                        case 14:
                        case 49:
                            i3 = i2 < size ? 1709 : 1678;
                        case 204:
                            Lm lm = Pi.get(i2);
                            int i4 = 1740;
                            while (true) {
                                i4 ^= 1757;
                                switch (i4) {
                                    case 17:
                                        i4 = lm != null ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        String e2 = lm.e();
                                        boolean contains = e2.contains(m47);
                                        int i5 = 1864;
                                        while (true) {
                                            i5 ^= 1881;
                                            switch (i5) {
                                                case 17:
                                                    i5 = contains ? 48736 : 48705;
                                                case 47384:
                                                    boolean contains2 = e2.contains(m47);
                                                    int i6 = 48891;
                                                    while (true) {
                                                        i6 ^= 48908;
                                                        switch (i6) {
                                                            case 22:
                                                            case 53:
                                                                boolean contains3 = e2.contains(C0005.m17(f52short, 531, 2, 489));
                                                                int i7 = 49790;
                                                                while (true) {
                                                                    i7 ^= 49807;
                                                                    switch (i7) {
                                                                        case 18:
                                                                        case 51:
                                                                            boolean contains4 = e2.contains(C0013.m41(f52short, 547, 2, 874));
                                                                            int i8 = 50689;
                                                                            while (true) {
                                                                                i8 ^= 50706;
                                                                                switch (i8) {
                                                                                    case 19:
                                                                                        i8 = contains4 ? 50782 : 50751;
                                                                                    case 45:
                                                                                        break;
                                                                                    case 50:
                                                                                    case 76:
                                                                                        jSONObject2.put(C0014.m43(f52short, 549, 8, 2884), e2.trim());
                                                                                        break;
                                                                                }
                                                                            }
                                                                            break;
                                                                        case 84:
                                                                            jSONObject2.put(C0007.m26(f52short, 533, 10, 2200), lm.Pi(C0000.m1(f52short, 543, 4, 341)).I().trim());
                                                                            int i9 = 49914;
                                                                            while (true) {
                                                                                i9 ^= 49931;
                                                                                switch (i9) {
                                                                                    case 497:
                                                                                        i9 = 50596;
                                                                                    case 1711:
                                                                                        break;
                                                                                }
                                                                                break;
                                                                            }
                                                                        case 241:
                                                                            i7 = contains3 ? 49883 : 49852;
                                                                    }
                                                                }
                                                                break;
                                                            case 503:
                                                                i6 = contains2 ? 49635 : 48953;
                                                            case 32495:
                                                                jSONObject2.put(C0006.m18(f52short, 522, 9, 2855), e2.trim());
                                                                int i10 = 49666;
                                                                while (true) {
                                                                    i10 ^= 49683;
                                                                    switch (i10) {
                                                                        case 17:
                                                                            i10 = 49697;
                                                                        case 50:
                                                                            break;
                                                                    }
                                                                }
                                                                break;
                                                        }
                                                    }
                                                    break;
                                                case 47417:
                                                    jSONObject2.put(C0006.m18(f52short, 510, 12, 650), e2.trim());
                                                    int i11 = 48767;
                                                    while (true) {
                                                        i11 ^= 48784;
                                                        switch (i11) {
                                                            case 14:
                                                                break;
                                                            case 239:
                                                                i11 = 48798;
                                                        }
                                                        break;
                                                    }
                                                    break;
                                                case 47483:
                                            }
                                        }
                                        break;
                                }
                            }
                            int i12 = i2 + 1;
                            int i13 = 50813;
                            while (true) {
                                i13 ^= 50830;
                                switch (i13) {
                                    case 18:
                                        break;
                                    case 243:
                                        i13 = 50844;
                                        break;
                                }
                            }
                            i2 = i12;
                            break;
                        case 239:
                            break;
                    }
                    String trim = h2.Pi(C0014.m43(f52short, 557, 3, 841)).get(14).e().trim();
                    jSONObject2.put(C0018.m56(f52short, 560, 6, 1872), list.get(0));
                    jSONObject2.put(C0007.m26(f52short, 566, 8, 2269), e);
                    jSONObject2.put(C0008.m27(f52short, 574, 7, 926), h + j.replace(C0005.m17(f52short, 581, 2, 1817), ""));
                    jSONObject2.put(C0014.m43(f52short, 583, 11, 2033), "" + trim);
                    Matcher matcher = Pattern.compile(C0005.m17(f52short, 594, 27, 2452)).matcher(n);
                    boolean find = matcher.find();
                    int i14 = 51588;
                    while (true) {
                        i14 ^= 51605;
                        switch (i14) {
                            case 17:
                                if (find) {
                                    break;
                                } else {
                                    i14 = 51681;
                                }
                            case 54:
                                break;
                            case 87:
                                ArrayList arrayList = new ArrayList();
                                while (true) {
                                    boolean find2 = matcher.find();
                                    int i15 = 51712;
                                    while (true) {
                                        i15 ^= 51729;
                                        switch (i15) {
                                            case 14:
                                            case 17:
                                                i15 = find2 ? 51805 : 51774;
                                            case 47:
                                                break;
                                            case 76:
                                                arrayList.add(matcher.group(1));
                                                int i16 = 51836;
                                                while (true) {
                                                    i16 ^= 51853;
                                                    switch (i16) {
                                                        case 241:
                                                            i16 = 52518;
                                                            break;
                                                        case 1963:
                                                            break;
                                                    }
                                                }
                                                break;
                                        }
                                        StringBuilder sb2 = new StringBuilder();
                                        while (true) {
                                            int size2 = arrayList.size();
                                            int i17 = 52611;
                                            while (true) {
                                                i17 ^= 52628;
                                                switch (i17) {
                                                    case 23:
                                                        i17 = i < size2 ? 52704 : 52673;
                                                    case 54:
                                                    case 85:
                                                        break;
                                                    case 116:
                                                        int i18 = 52735;
                                                        while (true) {
                                                            i18 ^= 52752;
                                                            switch (i18) {
                                                                case 14:
                                                                case 45:
                                                                    break;
                                                                case 1007:
                                                                    i18 = i > 0 ? 53479 : 52797;
                                                                case 7927:
                                                                    sb2.append(C0012.m37(f52short, 621, 1, 2250));
                                                                    break;
                                                            }
                                                        }
                                                        int i19 = i + 1;
                                                        sb2.append(i19);
                                                        sb2.append(C0014.m43(f52short, 622, 1, 2594));
                                                        sb2.append((String) arrayList.get(i));
                                                        int i20 = 53510;
                                                        while (true) {
                                                            i20 ^= 53527;
                                                            switch (i20) {
                                                                case 17:
                                                                    i20 = 53541;
                                                                    break;
                                                                case 50:
                                                                    break;
                                                            }
                                                        }
                                                        i = i19;
                                                        break;
                                                }
                                                jSONObject2.put(C0013.m41(f52short, 623, 13, 2780), C0017.m52(f52short, 636, 2, 1619));
                                                jSONObject2.put(C0005.m17(f52short, 638, 12, 3261), sb2);
                                                JSONArray jSONArray = new JSONArray();
                                                jSONArray.put(jSONObject2);
                                                jSONObject.put(C0017.m52(f52short, 650, 4, 2422), jSONArray);
                                                return jSONObject.toString();
                                            }
                                        }
                                    }
                                }
                                break;
                            case 116:
                                return "";
                            default:
                                continue;
                        }
                        i14 = 51650;
                    }
                }
            }
        } catch (Exception e3) {
            SpiderDebug.log(e3);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:21:0x0040, code lost:
    
        return r3;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    protected java.util.HashMap<java.lang.String, java.lang.String> h(java.lang.String r7) {
        /*
            r6 = this;
            r0 = 0
            java.lang.String r1 = "ۨۢۢ"
            r2 = r0
            r3 = r0
            r4 = r1
            r1 = r0
        L7:
            int r4 = com.github.catvod.parser.C0006.m20(r4)
            switch(r4) {
                case 56482: goto L1b;
                case 1748863: goto L28;
                case 1750632: goto L40;
                case 1751652: goto L35;
                case 1752612: goto L3a;
                case 1755432: goto L13;
                default: goto Le;
            }
        Le:
            short[] r2 = com.github.catvod.spider.Slys.f52short
            java.lang.String r4 = "ۥۧ"
            goto L7
        L13:
            java.util.HashMap r3 = new java.util.HashMap
            r3.<init>()
            java.lang.String r4 = "ۤۤۤ"
            goto L7
        L1b:
            r0 = 664(0x298, float:9.3E-43)
            r4 = 111(0x6f, float:1.56E-43)
            r5 = 2003(0x7d3, float:2.807E-42)
            java.lang.String r0 = com.github.catvod.parser.C0001.m3(r2, r0, r4, r5)
            java.lang.String r4 = "ۥۣۤ"
            goto L7
        L28:
            r1 = 654(0x28e, float:9.16E-43)
            r4 = 10
            r5 = 436(0x1b4, float:6.11E-43)
            java.lang.String r1 = com.github.catvod.parser.C0000.m1(r2, r1, r4, r5)
            java.lang.String r4 = "ۥ۟ۤ"
            goto L7
        L35:
            short[] r2 = com.github.catvod.spider.Slys.f52short
            java.lang.String r4 = "ۡۧۥ"
            goto L7
        L3a:
            r3.put(r1, r0)
            java.lang.String r4 = "ۣۢۧ"
            goto L7
        L40:
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Slys.h(java.lang.String):java.util.HashMap");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:186:0x0184. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:199:0x0147. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:29:0x01e5. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:73:0x026e. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:7:0x005a. Please report as an issue. */
    public String homeContent(boolean z) {
        Dv Pi;
        JSONArray jSONArray;
        int i;
        try {
            HZ h2 = lk.h(fP.n(h + C0000.m1(f52short, 775, 14, 622), h("")));
            Dv Pi2 = h2.Pi(C0007.m26(f52short, 789, 14, 2194));
            JSONArray jSONArray2 = new JSONArray();
            Iterator<Lm> it = Pi2.iterator();
            while (true) {
                boolean hasNext = it.hasNext();
                String m41 = C0013.m41(f52short, 803, 4, 1871);
                boolean z2 = false;
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = hasNext ? 1709 : 1678;
                        case 204:
                            Lm next = it.next();
                            String I = next.Pi(C0002.m6(f52short, 807, 6, 2106)).I();
                            boolean equals = I.equals(C0005.m17(f52short, 813, 2, 2484));
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = !equals ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        boolean equals2 = I.equals(C0015.m47(f52short, 815, 3, 545));
                                        int i4 = 1864;
                                        while (true) {
                                            i4 ^= 1881;
                                            switch (i4) {
                                                case 17:
                                                    i4 = !equals2 ? 48736 : 48705;
                                                case 47384:
                                                    break;
                                                case 47417:
                                                    boolean equals3 = I.equals(C0012.m37(f52short, 818, 2, 1468));
                                                    int i5 = 48767;
                                                    while (true) {
                                                        i5 ^= 48784;
                                                        switch (i5) {
                                                            case 14:
                                                            case 45:
                                                                break;
                                                            case 76:
                                                                boolean equals4 = I.equals(C0008.m27(f52short, 820, 2, 2092));
                                                                int i6 = 48891;
                                                                while (true) {
                                                                    i6 ^= 48908;
                                                                    switch (i6) {
                                                                        case 22:
                                                                        case 53:
                                                                            break;
                                                                        case 503:
                                                                            i6 = equals4 ? 49635 : 48953;
                                                                        case 32495:
                                                                            break;
                                                                    }
                                                                }
                                                                break;
                                                            case 239:
                                                                i5 = !equals3 ? 48860 : 48829;
                                                        }
                                                    }
                                                    break;
                                                case 47483:
                                            }
                                        }
                                        break;
                                }
                            }
                            z2 = true;
                            int i7 = 49666;
                            while (true) {
                                i7 ^= 49683;
                                switch (i7) {
                                    case 17:
                                        i7 = z2 ? 49759 : 49728;
                                    case 50:
                                    case 76:
                                        Matcher matcher = this.j.matcher(next.j(m41));
                                        boolean find = matcher.find();
                                        int i8 = 49790;
                                        while (true) {
                                            i8 ^= 49807;
                                            switch (i8) {
                                                case 18:
                                                case 51:
                                                    String trim = matcher.group(1).trim();
                                                    JSONObject jSONObject = new JSONObject();
                                                    jSONObject.put(C0014.m43(f52short, 822, 7, 2724), trim);
                                                    jSONObject.put(C0001.m3(f52short, 829, 9, 953), I);
                                                    jSONArray2.put(jSONObject);
                                                    int i9 = 50689;
                                                    while (true) {
                                                        i9 ^= 50706;
                                                        switch (i9) {
                                                            case 19:
                                                                i9 = 50720;
                                                            case 50:
                                                                break;
                                                        }
                                                    }
                                                    break;
                                                case 84:
                                                    int i10 = 49914;
                                                    while (true) {
                                                        i10 ^= 49931;
                                                        switch (i10) {
                                                            case 497:
                                                                i10 = 50596;
                                                            case 1711:
                                                                break;
                                                        }
                                                    }
                                                    break;
                                                case 241:
                                                    i8 = !find ? 49883 : 49852;
                                            }
                                        }
                                        break;
                                    case 83:
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    JSONObject jSONObject2 = new JSONObject();
                    int i11 = 50813;
                    while (true) {
                        i11 ^= 50830;
                        switch (i11) {
                            case 18:
                                break;
                            case 53:
                                break;
                            case 243:
                                if (!z) {
                                    break;
                                } else {
                                    i11 = 51557;
                                }
                            case 4075:
                                jSONObject2.put(C0018.m56(f52short, 838, 7, 2440), this.V0);
                                break;
                            default:
                                continue;
                        }
                        i11 = 50875;
                    }
                    jSONObject2.put(C0011.m35(f52short, 845, 5, 2138), jSONArray2);
                    try {
                        Pi = h2.Pi(C0003.m9(f52short, 850, 16, 3260));
                        jSONArray = new JSONArray();
                        i = 0;
                    } catch (Exception e) {
                        SpiderDebug.log(e);
                    }
                    while (true) {
                        int size = Pi.size();
                        int i12 = 51588;
                        while (true) {
                            i12 ^= 51605;
                            switch (i12) {
                                case 17:
                                    i12 = i < size ? 51681 : 51650;
                                case 54:
                                case 87:
                                    break;
                                case 116:
                                    Lm lm = Pi.get(i);
                                    String I2 = lm.Pi(C0017.m52(f52short, 866, 6, 1463)).I();
                                    String h3 = lm.Pi(C0005.m17(f52short, 872, 5, 3231)).h(C0008.m27(f52short, 877, 3, 379));
                                    String m17 = C0005.m17(f52short, 880, 4, 1459);
                                    Matcher matcher2 = this.q.matcher(lm.Pi(C0006.m18(f52short, 884, 1, 2027)).h(m41));
                                    boolean find2 = matcher2.find();
                                    int i13 = 51712;
                                    while (true) {
                                        i13 ^= 51729;
                                        switch (i13) {
                                            case 14:
                                            case 17:
                                                i13 = !find2 ? 51805 : 51774;
                                            case 47:
                                                String group = matcher2.group(1);
                                                JSONObject jSONObject3 = new JSONObject();
                                                jSONObject3.put(C0014.m43(f52short, 885, 6, 1144), group);
                                                jSONObject3.put(C0009.m30(f52short, 891, 8, 2070), I2);
                                                jSONObject3.put(C0006.m18(f52short, 899, 7, 1507), h + h3.replace(C0017.m52(f52short, 906, 2, 2113), ""));
                                                jSONObject3.put(C0002.m6(f52short, 908, 11, 3187), m17);
                                                jSONArray.put(jSONObject3);
                                                break;
                                            case 76:
                                                int i14 = 51836;
                                                while (true) {
                                                    i14 ^= 51853;
                                                    switch (i14) {
                                                        case 241:
                                                            i14 = 52518;
                                                        case 1963:
                                                            break;
                                                    }
                                                    break;
                                                }
                                                break;
                                        }
                                    }
                                    int i15 = i + 1;
                                    int i16 = 52611;
                                    while (true) {
                                        i16 ^= 52628;
                                        switch (i16) {
                                            case 23:
                                                i16 = 52642;
                                                break;
                                            case 54:
                                                break;
                                        }
                                    }
                                    i = i15;
                                    break;
                            }
                            jSONObject2.put(C0002.m6(f52short, 919, 4, 2562), jSONArray);
                            int i17 = 52735;
                            while (true) {
                                i17 ^= 52752;
                                switch (i17) {
                                    case 14:
                                        break;
                                    case 1007:
                                        i17 = 52766;
                                        break;
                                }
                            }
                        }
                        return jSONObject2.toString();
                    }
                }
            }
        } catch (Exception e2) {
            SpiderDebug.log(e2);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:18:0x002f, code lost:
    
        return;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void init(android.content.Context r4, java.lang.String r5) {
        /*
            r3 = this;
            r0 = 0
            java.lang.String r1 = "ۣۤۧ"
            r2 = r1
            r1 = r0
        L5:
            int r2 = com.github.catvod.parser.C0006.m20(r2)
            switch(r2) {
                case 1746781: goto L17;
                case 1747810: goto L1f;
                case 1748862: goto L12;
                case 1754413: goto L2f;
                case 1754500: goto L27;
                default: goto Lc;
            }
        Lc:
            super.init(r4)
            java.lang.String r2 = "۟ۢ۠"
            goto L5
        L12:
            com.github.catvod.spider.Slys.h = r5
            java.lang.String r2 = "ۧ۠ۦ"
            goto L5
        L17:
            r1 = 1
            java.lang.String r1 = r5.substring(r1)
            java.lang.String r2 = "۠ۤۦ"
            goto L5
        L1f:
            r0 = 0
            byte[] r0 = android.util.Base64.decode(r1, r0)
            java.lang.String r2 = "ۣۧ۠"
            goto L5
        L27:
            java.lang.String r5 = new java.lang.String
            r5.<init>(r0)
            java.lang.String r2 = "ۡۧۤ"
            goto L5
        L2f:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Slys.init(android.content.Context, java.lang.String):void");
    }

    public String playerContent(String str, String str2, List<String> list) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0004.m12(f52short, 923, 5, 1243), 0);
            jSONObject.put(C0018.m56(f52short, 928, 3, 918), str2);
            return jSONObject.toString();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:38:0x00be. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:5:0x0085. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:76:0x012d. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        try {
            HZ h2 = lk.h(fP.n(h + C0002.m6(f52short, 931, 25, 2755) + URLEncoder.encode(str, C0003.m9(f52short, 956, 6, 559)) + C0011.m35(f52short, 962, 11, 2881), h("")));
            JSONObject jSONObject = new JSONObject();
            JSONArray jSONArray = new JSONArray();
            Dv Pi = h2.Pi(C0001.m3(f52short, 973, 2, 2709)).get(5).Pi(C0005.m17(f52short, 975, 4, 3095));
            int i = 0;
            while (true) {
                int i2 = i;
                int size = Pi.size();
                int i3 = 1616;
                while (true) {
                    i3 ^= 1633;
                    switch (i3) {
                        case 14:
                        case 49:
                            i3 = i2 < size ? 1709 : 1678;
                        case 204:
                            Lm lm = Pi.get(i2);
                            String j = lm.j(C0015.m47(f52short, 979, 5, 3258));
                            boolean contains = j.contains(str);
                            int i4 = 1740;
                            while (true) {
                                i4 ^= 1757;
                                switch (i4) {
                                    case 17:
                                        i4 = !contains ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        String h3 = lm.Pi(C0003.m9(f52short, 984, 3, 1880)).h(C0004.m12(f52short, 987, 3, 1391));
                                        String I = lm.Pi(C0002.m6(f52short, 990, 15, 2130)).I();
                                        Matcher matcher = this.q.matcher(lm.j(C0000.m1(f52short, 1005, 4, 1703)));
                                        boolean find = matcher.find();
                                        int i5 = 48767;
                                        while (true) {
                                            i5 ^= 48784;
                                            switch (i5) {
                                                case 14:
                                                case 45:
                                                    String group = matcher.group(1);
                                                    JSONObject jSONObject2 = new JSONObject();
                                                    jSONObject2.put(C0018.m56(f52short, 1009, 6, 617), group);
                                                    jSONObject2.put(C0015.m47(f52short, 1015, 8, 949), j);
                                                    jSONObject2.put(C0000.m1(f52short, 1023, 7, 921), h + h3.replace(C0004.m12(f52short, 1030, 2, 480), ""));
                                                    jSONObject2.put(C0017.m52(f52short, 1032, 11, 3077), I);
                                                    jSONArray.put(jSONObject2);
                                                    break;
                                                case 76:
                                                    int i6 = 48891;
                                                    while (true) {
                                                        i6 ^= 48908;
                                                        switch (i6) {
                                                            case 22:
                                                                break;
                                                            case 503:
                                                                i6 = 48922;
                                                        }
                                                        break;
                                                    }
                                                case 239:
                                                    i5 = !find ? 48860 : 48829;
                                            }
                                        }
                                        break;
                                    case 500:
                                        int i7 = 1864;
                                        while (true) {
                                            i7 ^= 1881;
                                            switch (i7) {
                                                case 17:
                                                    i7 = 48674;
                                                case 47483:
                                                    break;
                                            }
                                            break;
                                        }
                                }
                            }
                            i = i2 + 1;
                            int i8 = 49666;
                            while (true) {
                                i8 ^= 49683;
                                switch (i8) {
                                    case 17:
                                        i8 = 49697;
                                        break;
                                    case 50:
                                        break;
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    jSONObject.put(C0017.m52(f52short, 1043, 4, 1362), jSONArray);
                    return jSONObject.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }
}
